<?php defined('SYSPATH') or die('No direct script access.');

class Model_Comments_Photo extends ORM {

  protected $_table_name = 'comments_photo';

  protected $_sorting = array('id' => 'desc');
  
  protected $_belongs_to = array('photo_user' => array());


  /**
   * Validate
   */
  public function validate_add_comment($array) {

    $validation = Validate::factory($array)
                    ->filter(TRUE, 'trim')
                    ->rule('pid', 'numeric')
                    ->rule('ctext', 'not_empty');

    return $validation;
  }

}
